<html>
<head>
	<title>列表</title>
	<%include("/base/header.html"){} %>
	<%include("/base/css.html"){} %>
	<link rel="stylesheet" href="${staticPath}/css/content2.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
	<form class="layui-form layui-form-pane" id="search-form">
		<div class="layui-form-item">
            <div class="layui-input-inline">
                <label class="layui-form-label">主键:</label>
                <input type="text" value="" name="id" placeholder="主键" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">实体名:</label>
                <input type="text" value="" name="modelName" placeholder="实体名" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">表名:</label>
                <input type="text" value="" name="tableName" placeholder="表名" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">包路径:</label>
                <input type="text" value="" name="packagePath" placeholder="包路径" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">页面路径:</label>
                <input type="text" value="" name="viewPath" placeholder="页面路径" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">备注说明:</label>
                <input type="text" value="" name="remark" placeholder="备注说明" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">创建时间:</label>
                <input type="text" value="" name="createTime" placeholder="创建时间" class="layui-input" />
            </div>
            <div class="layui-input-inline">
                <label class="layui-form-label">创建人:</label>
                <input type="text" value="" name="createBy" placeholder="创建人" class="layui-input" />
            </div>
			<div class="layui-input-inline">
				<a class="layui-btn" href="javascript:search();">查询</a><span></span>
				<a class="layui-btn" href="javascript:openAdd()">新增</a>
			</div>
		</div>
	</form>
	<div class="layui-form">
		<table id="layui-table" lay-filter="grid"></table>
	</div>
</div>
<div id="LAY_democodejs">
	<script src="${staticPath}/js/jquery.min.js" charset="utf-8"></script>
	<script src="${ui2}/layui.all.js" charset="utf-8"></script>
	<script src="${staticPath}/js/common.js" charset="utf-8"></script>
	<script src="${staticPath}/js/content2.js" charset="utf-8"></script>
	<script type="text/html" id="gridBar">
		<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>
	<script>
        var tableIns=null;
        layui.use('table', function(){
            var table = layui.table;
            var height=getGridHeight();
            //第一个实例
            tableIns=table.render({
                elem: '#layui-table'
                ,height: 'full-'+height
                ,url: 'list' //数据接口
                ,page: true //开启分页
                ,cols: [[ //表头
                {field: 'id', title: '主键' ,width:80},
                {field: 'modelName', title: '实体名' ,width:80},
                {field: 'tableName', title: '表名' ,width:80},
                {field: 'packagePath', title: '包路径' ,width:80},
                {field: 'viewPath', title: '页面路径' ,width:80},
                {field: 'remark', title: '备注说明' ,width:80},
                {field: 'createTime', title: '创建时间' ,width:80},
                {field: 'createBy', title: '创建人' ,width:80}
                 {fixed: 'right', width:100, align:'center', toolbar: '#gridBar'} //这里的toolbar值是模板元素的选择器
                ]]
            	,request: tableRequest
				,response: tableResponse
            });
        });
	</script>
</div>
</body>
</html>
